#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 +5;
int n;int a[N],b[N],p[N],cnt,ans;
int main()
{
    ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin >> n;
    for(int i=1;i<=n;i++) {
        cin>>a[i];
        if(!b[a[i]]) p[++cnt] = a[i];
        b[a[i]]++;
    }
    sort(p+1,p+cnt);
    //for(int i=1;i<=cnt;i++)cerr<<p[i]<<' '<<b[p[i]]<<'\n';
    for(int i=1;i<cnt;i++){
        if(b[p[i]]<b[p[i+1]]) ans=max(0,ans-(b[p[i+1]]-b[p[i]]));
        else ans+=b[p[i]]-b[p[i+1]];
    }
    cout<<ans+b[p[cnt]];return 0;
}
